﻿
@model Sprint1.Models.Question

    @{
        ViewBag.Title = "Ask Question";
    }

    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Ask Question</legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.Title):
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Title,2)
                @Html.ValidationMessageFor(model => model.Title)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Body):
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Body, 5)
                @Html.ValidationMessageFor(model => model.Body)
            </div>
            <p>
                <input type="submit" value="Ask" />
            </p>
        </fieldset>
    }
